When a dynamic flex field or dynamic entity field points to another dynamic custom entity or system entity, you can specify a simple list of values (LOV) when creating a variform override. To achieve this, you use an entity query with the following in-line parameters for the LOV key in the variform:
ENTITY: The fully qualified entity name
FIELD1, FIELD2, and so on: The labels used
STYLE
To specify a simple LOV:
In the Database-Backed Variforms view (on page 1), create a variform override using the Variform File Definition form (on page 1) or the Override for a Variform Object form (on page 1).
In the Variform XML field, add the LOV key and widget subtype information to the respective field, including relevant in-line parameters.
The following example shows a field LOV against a custom entity. It uses the field cdefooDynamicBusinessName as the label and the default style.
<item fieldId="customEntityDynamicComponent.cdebarDynamicFoo" extraEntry="none">
<item-attribute type="lovKey">entityDynamicLov?ENTITY=com.navis.extension.sandbox.CustomFoo,FIELD1=customEntityDynamicComponent.cdefooDynamicBusinessName</item-attribute>
<item-attribute type="widgetSubType">search</item-attribute>
</item>
The next example shows the same user LOV using a different style.
<item fieldId="customEntityDynamicComponent.cdebarUser">
<item-attribute type="lovKey">entityDynamicLov?ENTITY=BaseUser,FIELD1=buserUid,FIELD2=buserLastName,STYLE=LABEL1_PAREN_LABEL2</item-attribute>
<item-attribute type="widgetSubType">search</item-attribute>
</item>
Click Save; then close the form.